import requests
domain = "comm.chatglm.cn"

url = f"https://{domain}/law_api/search_company_name_by_sub_info"

# 根据关联子公司信息某个字段是某个值来查询具体的公司名称
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer DE32EB46D23350E0B75B3702C8D5DC036F8CE32DC73C919D'
}

data = {
    "key": "上市公司投资金额",
    "value":"8.49亿"
}

rsp = requests.post(url, json=data, headers=headers)
print(rsp.json())